import { http } from "@/utils/http/axios";

export function getWeather(params = {}) {
	// const a = http
	// 	.request<API.Response.BasicResponse>({
	// 		baseURL: "a",
	// 		url: "/WEATHER",
	// 		method: "get",
	// 		params
	// 	})
	// 	.then(res => {
	// 		console.log(res);
	// 	});
	return new Promise(resolve => {
		resolve({
			results: [
				{
					location: {
						id: "WS7GQBRNR6V8",
						name: "厦门",
						country: "CN",
						path: "厦门,厦门,福建,中国",
						timezone: "Asia/Shanghai",
						timezone_offset: "+08:00"
					},
					now: {
						text: "中雨",
						code: "14",
						temperature: "18"
					},
					last_update: "2024-04-05T00:30:15+08:00"
				}
			]
		});
	});
}
